From: Giovanni Campagna Date: Mon, 28 Jan 2013 23:23:31 +0000 (+0100) Subject: NetworkMenu: defer calling syncSectionTitle until after pushing the device X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5010 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b3f29b46cf0bc562d2302c014bde25628802f18b;p=gnome-shell.git NetworkMenu: defer calling syncSectionTitle until after pushing the device syncSectionTitle looks at device list for the section, to understand if the section should be visible or not, so obviously it needs to see the new device. I wonder when this broke. https://bugzilla.gnome.org/show_bug.cgi?id=692749 --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index ce1e7e44b..8c7c4dc75 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1934,10 +1934,10 @@ const NMApplet = new Lang.Class({ section.addMenuItem(wrapper.statusItem); section.addMenuItem(wrapper.section); - this._syncSectionTitle(wrapper.category); - let devices = this._devices[wrapper.category].devices; devices.push(wrapper); + + this._syncSectionTitle(wrapper.category); }, _deviceRemoved: function(client, device) {